import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/access_record_entity.g.dart';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';

export 'package:enterprise_v6_app/generated/json/access_record_entity.g.dart';

/// 出入记录
@JsonSerializable()
class AccessRecordEntity {

	AccessRecordEntity();

	factory AccessRecordEntity.fromJson(Map<String, dynamic> json) => $AccessRecordEntityFromJson(json);
  /// 车辆类型 1:普货车辆 2:社会车辆 3:小型车辆 4:应急车辆 5:其他
	String? carType = '';
  // 所属单位
  String? affiliatedUnit = '';
	String? carTypeName = '';
  // 所属企业名字
  String? companyCodeName = '';
	String? contactPerson = '';
	String? createDate = '';
	String? destination = '';
	String? endDate = '';
	String? id = '';
	String? inDate = '';
	String? inGateId = '';
	String? inGateName = '';
	String? licensePlate = '';
	String? name = '';
	int? numberOfViolations = 0;
	String? outDate = '';
	String? outGateName = '';
	String? outId = '';
	String? parkId = '';
	int? permissionType = 0;
	String? personToPersonPhoneNumber = '';
  /// TYPE: 100.后台管理账号 1.企业人员账号 2.园区账号 3.政府人员账号 4:临时访客 5:第三方单位人员 6:其他
  String? personnelCategory = '';
  /// 运输介质
  String? transportMedium = '';
	String? reasonForVisit = '';
	int? recordType = 0;
	String? startDate = '';
	String? updateDate = '';
	String? visitorTelephone = '';
  String? companyCode = '';

	Map<String, dynamic> toJson() => $AccessRecordEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
